package com.go.where.family.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.go.where.family.dao.TeacherDao;
import com.go.where.family.pojo.TeacherInfo;
import com.go.where.family.service.TeacherService;

@Service("teacherService")
public class TeacherServiceImpl implements TeacherService {

	@Resource(name = "teacherDao")
	private TeacherDao teacherDao;

	@Override
	public List<TeacherInfo> queryList(Map<String, Object> map) {
		return teacherDao.queryT(map);
	}

	@Override
	public TeacherInfo queryTeacherDetail(String teacherId) {
		TeacherInfo t = new TeacherInfo();
		t.setTeacherId(teacherId);
		return teacherDao.queryByPrimaryKey(t);
	}



}
